package com.fresh.liangyi.dao;

import com.fresh.liangyi.model.domain.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface AddressMapper {
    //根据用户id找地址
    @Select("SELECT * FROM address WHERE user_id=#{id}")
    public List<Address> getAddressByUserId(Integer id);
}
